import request from '@/utils/request'

// 查询【每日结算】列表
export function listSettlement(query) {
  return request({
    url: '/money/settlement/list',
    method: 'get',
    params: query
  })
}

// 查询【每日结算】详细
export function getSettlement(id) {
  return request({
    url: '/money/settlement/' + id,
    method: 'get'
  })
}

// 新增【每日结算】
export function addSettlement(data) {
  return request({
    url: '/money/settlement',
    method: 'post',
    data: data
  })
}

// 修改【每日结算】
export function updateSettlement(data) {
  return request({
    url: '/money/settlement',
    method: 'put',
    data: data
  })
}

// 删除【每日结算】
export function delSettlement(id) {
  return request({
    url: '/money/settlement' + id,
    method: 'delete'
  })
}

//创建【每日结算】单
export function createdSettlement(data) {
  return request({
    url: '/money/settlement',
    method: 'post',
    data: data
  })
}


